package com.trimps.wifi.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.trimps.wifi.pojo.Alarm;
import com.trimps.wifi.pojo.FlowData;

public interface AlarmMapper {

	public int getAlarmCount(@Param("keyword")String keyword);

	public List<Alarm> getAllAlarms(@Param("keyword")String keyword, @Param("start") int start,
			@Param("rowPage") int rowPage);
	
	public List<Alarm> getAlarmListByKeyword(@Param("keywords")String keywords,@Param("deviceNo")String deviceNo,@Param("startTime")String startTime,@Param("endTime")String endTime);

	public int getAlarmListCountByKeyword(@Param("keywords")String keywords,@Param("deviceNo")String deviceNo,@Param("startTime")String startTime,@Param("endTime")String endTime);

}
